import request from '@/utils/request'

// psi 新建入库
export function psiEnterLeaveStockSave(data) {
  return request({
    url: 'PsiEnterLeaveStock/saveOrUpdate',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

// psi 入库单列表
export function psiEnterLeaveStorageIndex(data) {
  return request({
    url: 'PsiEnterLeaveStock/queryPageList',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

// 出入库详情页ID
export function psiEnterLeaveStorageRead(data) {
  return request({
    url: 'PsiEnterLeaveStock/queryById',
    method: 'post',
    data: data
  })
}
// 出入库详情页ID
export function psiSalesLeaveContactsByNum(data) {
  return request({
    url: 'CrmContract/queryCustomerContactsByNum',
    method: 'post',
    data: data
  })
}
